
    <link rel="stylesheet" href="__PUBLIC__/kindeditor/themes/default/default.css" />
    <script charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor.js"></script>
    <script charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>
    <script>
        var editor;
        KindEditor.ready(function(K) {
            editor = K.create('#{$field}', {
                allowFileManager : true,
                filePostName : 'imgFile',
                filterMode : false,
                allowFileManager : false,
                allowPreviewEmoticons : false,
            });
            function syn() {
                editor.sync();
                html = $('#field').val();
            }
            window.setInterval(syn,'1200');
        });
    </script>

    <textarea name="{$field}" id="{$field}" style="width: 100%;height: 500px;">{$value}</textarea>



<!--
<script type="text/javascript">
var editor = new Simditor({
  textarea: $('#{$field}'),
  defaultImage : '__PUBLIC__/images/wechat.jpg',
  upload       : {
  	placeholder : '剧透社',
  	url: "{:url('upload/editor')}",
  	pasteImage:true,
  	fileKey: "upload_file"
  }
});
</script>-->
